const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,

  chainWebpack: (config) => {
    config.plugin('html').tap((args) => {
      args[0].title = 'X射线摄影设备质量控制检测虚拟仿真实验'
      return args
    })
  },
  publicPath: './',
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            //
            require('postcss-pxtorem')({
              //这里是配置项，详见官方文档
              rootValue: 192, // 换算的基数
              propList: ['*']
            })
          ]
        }
      }
    }
  }
})
